import Vue from "vue";
import VueRouter from "vue-router";
// import HomeView from '../views/HomeView.vue'
import Index from "../views/Index.vue";
import DaoHang from '../views/DaoHang.vue'

Vue.use(VueRouter);

const routes = [
  {
    path: "/details",
    name: "details",
    component: () => import("../views/Details.vue"),
  },
  {
    path: "/index/:type",
    name: "index",
    component: Index,
  },
  {
    path: "/one/:type",
    name: "one",
    component: () => import("../views/One.vue"),
  },
  {
    path: "/two/:type",
    name: "two",
    component: () => import("../views/Two.vue"),
  },
  {
    path: "/jksl/:type",
    name: "jiankangshiliao",
    component: () => import("../views/JiankangShiliao.vue"),
  },
  {
    path: "/test",
    name: "/test",
    component: () => import("../testing/test.vue"),
  },
  {
    path: "/login",
    name: "login",
    component: () => import("../views/Login.vue"),
  },
  {
    path: "/registe",
    name: "registe",
    component: () => import("../views/Registe.vue"),
  },
  {
    path: "/jiachang/:type",
    name: "caipu",
    component: () => import("../views/Jiachang.vue"),
  },
  {
    path: "/caipu/:type",
    name: "caipu",
    component: () => import("../views/Caipu.vue"),
  },
  {
    path: "/cyph/:type/:id",
    name: "cyph",
    props: true,
    component: () => import("../views/CyPh.vue"),
  },
  {
    path: "/yhss/:type",
    name: "yhss",
    component: () => import("../views/Yhss.vue"),
  },
  {
    path:"/search/:search",
    name:"search",
    component: () => import("../views/Search.vue"),
  },
  {
    path:"/search/:search/:id",
    name:"search",
    props: true,
    component: () => import("../views/Search.vue"),
  },
  {
    path:"/yonghu/:type",
    name:"yonghu",
    props: true,
    component: () => import("../views/YongHu.vue"),
  },
  {
    path:"/yonghu/:type/:id",
    name:"yonghu",
    props: true,
    component: () => import("../views/YongHu.vue"),
  },
  {
    path: '/daohang/:type/:id',
    name: 'daohang',
    component:DaoHang,
  },
  {
    path:'/wdtiw/:type',
    name:'wdtiw',
    component: () => import('../views/WdTiw.vue'),
  },
  {
    path: '/xint',
    name: 'xint',
    component: () => import('../views/Xint.vue'),
  },
  {
    path: '/xiaozhis',
    name: 'xiaozhis',
    component: () => import('../views/XiaoZhis.vue')
  },
  // {
  //   path: '/about',
  //   name: 'about',
  //   component: () => import(/* webpackChunkName: "about" */ '../views/AboutView.vue')
  // }
];

const router = new VueRouter({
  mode: "history",
  base: process.env.BASE_URL,
  routes,
});

export default router;
